package com.atkxp.dao;

import com.atkxp.pojo.ItemCF;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

import java.util.Map;

/**
 * @author user
 * @declaration
 * @create 2023/3/18-9:05
 */
@Repository
public interface ItemCFMapper {
    int getScore(@Param("userId") int userId, @Param("blogId") int blogId);

    ItemCF existConnection(@Param("userId") int userId, @Param("blogId") int blogId);

    int addConnection(Map map);

    int updateConnection(Map map);

    int deleteConnection(int blogId);
}
